#include "config.h"
#include "babl-internal.h"
+#include "git-version.h"
static int ref_count = 0;
static int compare_fish_pixels (const void *a, const void *b)
{
- const Babl **fa = a;
- const Babl **fb = b;
+ const Babl **fa = (void*)a;
+ const Babl **fb = (void*)b;
return ((*fb)->fish.pixels - (*fa)->fish.pixels) +
((*fb)->fish.processings - (*fa)->fish.processings);
}
FILE *dbfile = fopen (fish_cache_path (), "w");
if (!dbfile)
return;
- fprintf (dbfile, "#babl 0 %i fishes\n", db->babl_list->count);
+ fprintf (dbfile, "#%s\n", BABL_GIT_VERSION);
/* sort the list of fishes by usage, making next run more efficient -
* and the data easier to approach as source of profiling